import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { MarshalException } from "../../Engine/RMI/MarshalException";
type int = number;
//class ECmdBroadCast
    
    export  class ECmdBroadCast
    {
        constructor(arg1: int)
        {
            
            this.__value = arg1;
            return;
        }

        public static __read(arg1: SerializeStream): ECmdBroadCast
        {
            var loc1=arg1.readByte();
            if (loc1 < 0 || loc1 >= 35) 
            {
                throw new MarshalException();
            }
            return ECmdBroadCast.convert(loc1);
        }

        public value(): int
        {
            return this.__value;
        }

        public __write(arg1: SerializeStream): void
        {
            arg1.writeByte(this.__value);
            return;
        }

        public static convert(arg1: int): ECmdBroadCast
        {
            return new ECmdBroadCast(arg1);
        }

        public static /* const */_ECmdBroadcastEntityInfo: int=1;

        public static /* const */_ECmdBroadcastEntityInfos: int=2;

        public static /* const */_ECmdBroadcastEntityMoveInfo: int=3;

        public static /* const */_ECmdBroadcastEntityLeftInfo: int=4;

        public static /* const */_ECmdBroadcastEntityAttributeUpdate: int=5;

        public static /* const */_ECmdBroadcastEntityAttributeUpdates: int=6;

        public static /* const */_ECmdBroadcastEntityLeftInfos: int=7;

        public static /* const */_ECmdBroadcastEntityFlashInfo: int=8;

        public static /* const */_ECmdBroadcastEntityOwner: int=9;

        public static /* const */_ECmdBroadcaseEntityInfoToMySelf: int=10;

        public static /* const */_ECmdBroadcastMapEntity: int=11;

        public static /* const */_ECmdBroadcastMapEntityPoint: int=12;

        public static /* const */_ECmdBroadcastMapEntityLeft: int=13;

        public static /* const */_ECmdBroadcastMapAllEntityPoint: int=16;

        public static /* const */_ECmdBroadcastEntityBeginFight: int=20;

        public static /* const */_ECmdBroadcastEntityDoFight: int=21;

        public static /* const */_ECmdBroadcastEntityFightBack: int=22;

        public static /* const */_ECmdBroadcastEntityBeginCollect: int=23;

        public static /* const */_ECmdBroadcastEntityToEntityUpdate: int=24;

        public static /* const */_ECmdBroadcastEntityGroupUpdate: int=25;

        public static /* const */_ECmdBroadcastEntityDoFights: int=26;

        public static /* const */_ECmdBroadcastEntityDropItem: int=30;

        public static /* const */_ECmdBroadcastEntityNpcShop: int=31;

        public static /* const */_ECmdBroadcastEntityDropSimpleItem: int=32;

        public static /* const */_ECmdBroadcastEntityDropLottery: int=33;

        public static /* const */_ECmdBroadcastEntityCrossGroupUpdate: int=34;

        public static /* const */_ECmdBroadcastMapBossEntityPoint: int=15;

        public static /* const */_ECmdBroadcastMapSharp: int=14;

        public /* var */__value: int;
    }
